home *** CD-ROM | disk | FTP | other *** search
- #
- #
- # Macintosh-specific "autoexec.net" config. file for version 2.0 + PA2AGA (71)
- #
- #
- # THIS FILE MUST BE ON THE TOP LEVEL OF YOUR DISK. DO NOT PUT IT INSIDE A
- # FOLDER AS NET/Mac WILL NOT BE ABLE TO FIND IT.
- #
- #
- # When installing TCP be sure to replace all
- # occurrences of YOURCALL with your own callsign and all
- # occurrences of IPADDRESS with the IP address that was
- # assigned to you by your local IP Address Coordinator.
- # (You MUST have a distinct personal IP address for every
- # station you put on the air; if you don't know what this
- # means, see the host.net file for your local IP address corrdinator or
- # ask others active on TCP how to get )
- #
- # It will help you to later read the NET/Mac beginners guide, ( it's in the
- # docs and help folder ) to understand this file better, you can then remove
- # all these comments to make this file smaller.
- #
- # Define who we are -- this must come first in this file:
- #
- hostname YOURCALL.ampr.org
- ax25 mycall YOURCALL
- #
- # Path to the Hosts.Net file - It could reside in another folder.
- # Also the file can now be named what-ever you desire.
- # Note that double quotes are required if there are
- # any space characters in the path name, otherwise they are not needed.
- # In the example below the host.net file can be found on the disk
- # NET/Mac.
- #
- hostfile "NET/Mac:Hosts.net"
- #
- # Attach interfaces:
- # Syntax for a Macintosh using the modem port for AX25:
- # attach <hw type> <not used but needs to be here> <string version
- # of the port ('a' or 'b')> <mode> <label> <bufsize> <mtu> <speed>
- #
- # The following typical attach command for the Mac says that you
- # will use an asynchronous port, specifically port 'a' (modem
- # port, b is printer port ), talking to an "ax25" (i.e. KISS-based) TNC.
- # The name you will use when running TCP to refer to this port is "ax0".
- # ( later when you are used to Net/Mac you may change this to anything you
- # like ) You allow a maximum of 2048 bytes of buffer; packets are no more
- # than 256 bytes long. You talk to the TNC at 9600 baud. You may also attach
- # other types of device to NET/Mac, see tha attach command in the NET/Mac help
- # menu.
- #
- #
- attach asy 1 a ax25 ax0 2048 256 9600
- #
- # This command will allow you to attach a Kantronics KPC 4 dual port TNC
- # so allowing control of both ports from the one serial interface on the
- # Mac. The interface name used below is kp0, when attached in this way
- # port one on the TNC becomes, kp0a and port two becomes kp0b. You will
- # also need to change the PARAM and ROUTING entries to show this new
- # interface name.
- #
- #attach kpc4 0 a ax25 kp0 2048 256 9600
- #
- # This command will allow you to attach a SLIP link via one of the serial
- # interfaces, in this case it's attached to the printer port of the computer
- # and is called MO, short for modem.
- #
- #attach asy 1 b slip mo 1024 576 1200
- #
- #
- # The following describes the parameters for the AppleTalk driver.
- # Note that this is a very simple AppleTalk interface, and will only
- # work with another Mac in the same AppleTalk zone running this
- # version of Net/Mac. (uses the LAP protocol)
- #
- # argv[0]: hardware type, must be "appletalk"
- # argv[1]: Protocol Type, e.g., "77"
- # argv[2]: device name,must be "b"
- # argv[3]: mode, must be "arpa"
- # argv[4]: interface label, e.g., "at0"
- # argv[5]: maximum number of packets allowed on receive queue, e.g., "5"
- # argv[6]: maximum transmission unit, bytes, e.g., "600"
- # < appletalk limitation.)
- #
- #
- # attach appletalk 77 b arpa at0 5 600
- #
- #
- # Insert your personal IP address make sure you put it inside the []'s:
- #
- #
- ip addr [IPADDRESS]
- #
- #
- # AX.25 CONFIGURATION:
- # The values in the following entries reflect default values.
- # These values come into play when you are operating in the AX.25
- # mode, along with your "ax25 mycall" entry above.
- #
- # Disable AX.25 digipeating, and let them eat cake:
- #
- #
- ax25 digipeat on
- #
- #
- # Set the max number of frames allowed to remain unacknowledged--
- # cannot be greater than 7, and 1 is a good number:
- #
- #
- ax25 maxframe 1
- #
- #
- # Limit the size of I=fields:
- #
- #
- ax25 paclen 256
- #
- #
- # Limit the number of unsuccessful retransmissions:
- #
- #
- ax25 retry 10
- #
- #
- # Set the number of bytes that can be pending on an AX.25 receive
- # queue:
- #
- #
- ax25 window 2048
- #
- #
- #
- ax25 t1 6000
- # Above is the same as FRACK
- ax25 t2 1000
- # Above is the same as RESPTIME
- ax25 t3 300000
- # Above is the same as CHECK
- #
- #
- # Turn on the mheard command in tcp...
- #
- #
- ax25 heard on
- #
- #
- # TCP/IP can send frames in one of two ways. 1 called a " datagram,"
- # and the other "vc," which stand for Virtual Circut.
- # If in "datagram," mode TCP/IP will send all frames as unconnected, like
- # a normal beacon frame. This is OK if the signal path to the staion
- # you are connected to is good, as it cuts down on the amount of
- # traffic on channel. However if you have a weak link you should
- # try "vc," mode this is like any normal ax25 packet connection.
- #
- #
- mode ax0 datagram
- #
- #
- # The following commands turn on the beacon function.
- # The first command set which port to beacon on. The second command
- # is the callsign to beacon to (QST is everyone), the third line is the actual
- # beacon message followed by the beacon interval in seconds, and finally
- # the last command turns on the beacon.
- #
- beacon set ax0
- beacon callsign QST
- beacon message "[IPADDRESS] Macintosh TCP/IP STN YOUR TOWN ANYWHERE "
- beacon interval 1200
- beacon enable
- #
- #
- # While your TNC is in KISS mode (it needs to be to use this software )
- # it is possible to change a few of the TNC's papameters.
- # These are TXDELAY, TXTAIL, PERSIST, SLOTTIME and DUPLEX.
- # ( You will get details of what these command do in the users manual for your
- # TNC.) However most TNC's have perfectly good values and these may not
- # need to be changed. Please check the KISS mode details for your TNC.
- #
- # The format is: param <label> <hex value> <hex value> ...
- #
- # As an example, a TNC-1 with an old crystal transmitter that is
- # slow to key may need longer TXDELAY and TXTAIL values than the
- # defaults, e.g.:
- #
- #param ax0 1 30
- # Above is the same as TXDELAY.
- #param ax0 2 64
- # Above is the same as TXTAIL
- #param ax0 3 10
- # Above is the same as PRESIST
- #param ax0 4 10
- # Above is the same as SLOTTIME
- #param ax0 5 0
- # Above is the same as DUPLEX
- #
- #
- # Time To Live is the maximum number of hops a packet can take
- # before it is thrown away. This command prevents an infinite
- # loop from occuring with packets in the network.
- #
- ip ttl 10
- #
- #
- # The Maximum Segment Size is the largest single transmission that
- # you will send. An mss of 216 corresponds to the mtu of 256 set
- # up in the attach command above, overhead bytes considered.
- #
- tcp mss 216
- #
- #
- # The Window parameter establishes the maximum number of bytes
- # that may be outstanding before your system expects an ack. If
- # window is twice as big as mss, for example, there will be two
- # active packets on the channel at any given time... large values
- # of window provide improved throughput on full-duplex links, but
- # are a problem on the air. Keep mss <= window <= 2*mss if
- # you're on the air.
- #
- tcp window 432
- #
- #
- # Tell TCP where to keep a log file - NOTE THE LEADING ':' CHARACTER
- # This file also needs a directory path to it, ( same as the host.net
- # file above ) so that the software can find it. Again see the NET/Mac
- # help menu.
- #
- #
- log :spool:log
- #
- #
- # set round trip time to 10 seconds - the original documentation states
- # this value as seconds, when it should be milliseconds!
- #
- tcp irtt 10000
- #
- #
- # smtp timer below sets the amount of time between attempts to send
- # messages in the queue. The value of 180 (seconds) sets it to every 3 min.
- # commented out for now, once you are familiar with smtp, you may change
- # this to meet your local needs. Three minutes is a good number if your
- # station is up 24hrs/day. If not, adjust to more like 10 minutes
- # (600 seconds)
- #
- #
- smtp timer 600
- #
- #
- # smtp gateway is the station which will forward your mail on
- # to the ax25 network and to other stations how you cannot reach directly.
- # In this case gb3xp is my local gateway, you should replace this with the
- # callsign of your local gateway. A local TCP/IPer should be able to help
- # you with this.
- #
- #
- smtp gateway gb3xp
- #
- #
- # Set the escape character - this is required for the Mac 512/Plus
- # keyboards. You may comment it out for the ADB keyboards.
- #
- #
- escape `
- #
- # Set the local timezone and offset to GMT
- #
- tzone GMT 0
- #
- #
- # Setup mailbox function for AX25 connects
- #
- #
- mbox y
- #
- #
- # The following command is optional, and allows you to provide a
- # callsign lookup function assuming you have an appropriate datafile.
- # There are two parameters, the first is the path to the data file, and the
- # second is the path to a logging file. If you wish to use this function
- # you will may need to change the file path.
- #
- #
- #callbk NET/Mac:Callsign:callbook NET/Mac:Callsign:callsign.log
- #
- #
- #
- #
- # Enable the Proxy ARP facility. This function allows for automatic
- # digipeating (so to speak) between several stations without having
- # to explicidly adding arp entries.
- #
- #
- is_es enable
- #
- #
- # enable IP Heard command. Keeps a running list of stations heard on
- # the channel. Typing IP H at the net> prompt will display the last 20 or
- # so stations that have been heard. You may also us AX25 H to see the last
- # 20 ax25 stations.
- #
- #
- ip heard on
- #
- #
- # Tell TCP to start up each of its daemons:
- start smtp
- start ftp
- start echo
- start discard
- start telnet
- start finger
- #
- #
- # The next entry set the default arp address. You may add additional arp
- # entries as needed. This one needs a little explaining. This is where
- # TCP/IP maps IP address to ax25 callsigns. For example the
- # entry, arp add gb3xp ax25 g8ggi-2, here TCP/IP will look up the
- # IP address for gb3xp in the host.net file, ( it just happens that
- # the IP address for gb3xp is 44.131.7.1 ) it then knows that any
- # TCP/IP information you want to send to 44.131.7.1 ( gb3xp ) will
- # use on air the callsign g8ggi-2 to make that connection. g8ggi-2 is the node
- # for SMTP mail.
- # In the next example I want all TCP/IP connections for host 44.131.6.5
- # ( g4bio ) to go straight to g4bio, no SSID. You only need an ARP entry for
- # stations that you are going to connect to directly. You do not need an ARP
- # entry for stations that you are routing to via another station.
- # Example 1, you can hear station G4ZZZ and you would like to connect to
- # him for this you need an ARP entry. Example 2, you want to connect to station
- # G0AAA, whoever you can not hear him so therefore cannot connect to him
- # directly, however station G4ZZZ can hear him and can therefore route you to
- # G0AAA, for this you do not need an ARP entry. We will deal with how to do
- # the routing in the next entry.
- #
- #
- arp add [44.131.0.0]/16 ax0 QST
- arp add gb3xp ax0 g8ggi-2
- arp add g4bio ax0 g4bio
- #
- #
- # This is where you tell NET/Mac how to send the packets. By default all
- # packets will go out the "ax0" port. Howver you can and should enter your own
- # routes. The first entry below is the default. The second entry means that
- # you want to send all packets for g0oan directly. The last entry means that
- # you want to send all packets for G0AAA on interface ax0 using G4ZZZ as a
- # TCP/IP gateway, he will then route your packets to G0AAA. Do not confuse this
- # type of gateway with the SMTP GATEWAY above.
- #
- #
- route add default ax0
- route add g0oan ax0
- route add g0aaa ax0 g4zzz
- #
- #
- #
- #
- #
- # ****************** NOW GO TO THE HOST.NET FILE. *************************
- #
- #
- #
- # End of Autoexec.net
-
-
-